package com.itheima.app;

import com.itheima.service.TeacherService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test_exe02 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("exe02-application-teacher.xml");
        TeacherService service = (TeacherService) app.getBean("teacherService");
        service.save();
    }
}
